package org.example.controller;


import org.example.entity.DormitoryAdmin;
import org.example.form.RuleForm;
import org.example.service.SystemAdminService;
import org.example.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author admin
 * @since 2024-10-31
 */
@RestController
@RequestMapping("/systemAdmin")
public class SystemAdminController {
   @Autowired
    private SystemAdminService systemAdminService;
    @GetMapping("/login")
    public ResultVO login(RuleForm ruleForm){
        return this.systemAdminService.login(ruleForm);
    }

}

